package com.hkrt.demo.data.network

import com.hkrt.demo.data.response.TokenResponse
import io.reactivex.Flowable
import retrofit2.http.POST
import retrofit2.http.Query

/**
* @author  Chenjinguang
* @date 10.08.2017.
*/
interface AuthApiService {

    @POST("token")
    fun getToken(@Query("code") authCode: String,
                 @Query("client_id") clientId: String  = "",
                 @Query("client_secret") clientSecret: String = "" ): Flowable<TokenResponse>

}